package jgl.vajra.driver.part.mine.activity;

import jgl.vajra.driver.R;
import jgl.vajra.driver.databinding.ActivityWithdrawalPageBinding;
import jgl.vajra.driver.part.mine.contract.WithdrawalPageContract;
import jgl.vajra.driver.part.mine.viewModel.WithdrawalPageViewModel;
import jgl.vajra.driver.widget.mvvm.factory.CreateViewModel;
import jgl.vajra.driver.widget.mvvm.view.BaseMVVMActivity;
import jgl.vajra.driver.widget.utils.ToastUtils;

@CreateViewModel(WithdrawalPageViewModel.class)
public class WithdrawalPageActivity extends BaseMVVMActivity<WithdrawalPageViewModel, ActivityWithdrawalPageBinding> implements WithdrawalPageContract.View {
    @Override
    public int getLayoutId() {
        return R.layout.activity_withdrawal_page;
    }

    @Override
    public void initView() {
        super.initView();
        mBinding.setView(this);
    }

    //全部提现
    @Override
    public void onFullWithdrawal() {
        mBinding.etNum.setText("2934.33");
    }

    //确认提现
    @Override
    public void onDetermine() {
        ToastUtils.showShort("确认提现");
        finish();
    }
}
